package com.cysion.study.ui

import com.cysion.study.ktbox.base.BaseActivity
import com.cysion.study.ktbox.utils.whiteTextTheme
import com.cysion.other.color
import com.cysion.study.uibox.bar.TopBar
import com.cysion.study.R
import com.cysion.study.entity.NoticeEntity
import kotlinx.android.synthetic.main.activity_notice_detail.*

class NoticeDetailActivity : BaseActivity() {
    var notice:NoticeEntity?=null

    override fun getLayoutId(): Int = R.layout.activity_notice_detail

    override fun initView() {
        whiteTextTheme(color(R.color.main_cl))
        topbar.apply {
            setTitle("通知详情")
            setOnTopBarClickListener { obj, pos ->
                if (pos == TopBar.Pos.LEFT) {
                    finish()
                }
            }
        }
        notice = intent.getBundleExtra("bundle").getSerializable("obj") as NoticeEntity?

        tv_title.text=notice?.title
        tv_time.text=notice?.createTime
        tv_content.text=notice?.content


    }

    override fun closeMvp() {
    }

}
